<!DOCTYPE html>
<html>
<head>
  <script src="lib/crafty.js"></script>
  <script src="src/game.js"></script>
  <script src="lib/jquery.js"></script>
  <script src="src/include.js"></script>
  <link href="style/style.css" rel="stylesheet" type="text/css">
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  <script type="text/javascript" src="http://www.parsecdn.com/js/parse-1.2.12.min.js"></script>
  
  <script>
  //SCRIPT TO CHECK IF SIGNED IN OR NOT
	window.onload = function () {
		Parse.initialize("EL9rGBARwKQl3NL4HAQ2U4GxQYjXV8dDDvDDaTPe", "WQLflsIP1zoVHCZgNjpr95dtrmaqjCaCkWSbOSrU");

    var currentUser = Parse.User.current();
 
    if (currentUser) {
        // do stuff with the user
        document.getElementById("loggedIn").innerHTML="Welcome, " + currentUser.get("username");
        document.getElementById("notLoggedIn").innerHTML= "<br> To play the game click <a href=\"game.html\">Here</a>. <br>";
        	  //document.getElementById("user").innerHtml="<a href=\"user.html\">Welcome</a>";
        
    } else {
      document.getElementById("notLoggedIn").innerHTML=" <br> <b> To login click <a href=\"login.html\">Here</a> <b>";
        // show the signup or login page

    }
 
}

  </script>
</head>
<body>
  <div id="container">
      <div id="header">
          <h1>
               JavaScript Game - Home 
          </h1>
      </div>
      
      <div id="navigation"></div>
      
      <div id="content-container">
          <div id="content">
              <h2 id="loggedIn">
                  Welcome!
              </h2>
              <p id="notLoggedIn">
              </p>

              <p>
                <br><span id="warning"><b>Note that this game performs best in Chrome or Safari. It has not been tested for IE or Firefox.</b></span><br>
                <br> The various header pages navigate to the following: <br> <br>

                <b>Game: </b>Allows you to play the game! Check out the guide page before you get started. <br> <br>
                
                <b>High Scores: </b>Contains the top 25 High Scores for the game. Try to make it onto this list! <em>Usernames in the list are clickable which takes you the users statistics page.</em> <br> <br>
                
                <b>My Scores: </b>Contains all of your scores for attempts at playing the game. Also provides detailed all-time and average statistics. <br> <br>

                <b>Guide: </b>Details how to play the game, the various powerups, coins, classes, scoring, and some hints for making the high score list. <br> <br>

                <b>About: </b>Information about the game and tools utilized in its creation. <br> 
              </p>
  
          </div>

          <div id="footer"></div>
          
      </div>
  </div>
</body>
</html>